; Events file 2020-09-17
; American War of Independence
; 1775 - 1790 by Civ2units
; BRITISH CAMPAIGN
;

@BEGINEVENTS
@DEBUG
@INITFLAG

@IF
NOSCHISM
DEFENDER=anybody 
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Americans		
talkertype=humanorcomputer
listener=British Empire
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=British Empire
talkertype=humanorcomputer
listener=Americans
listenertype=humanorcomputer
@THEN
@ENDIF

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;                                                     THE SCENARIO BEGINS...
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@IF
TURN
turn=1
@THEN
JUSTONCE
TEXT
^Good morning Sir!
^
^our great, wise and peaceful king George III, blessed by the gods, commissions you as commander of all 
^troops in North America. Maybe you've read it in the newspaper, some farmers in the colonies are rebellious. 
^There is no chance to earn glory and honor in battles due to the fact that our glorious army has to fight 
^against poorly equiped farmers. So unfortunatelly our most capable generals cancelled their support in 
^this expedition.
^
^It's up on you to crush down the unrest in our colonies and restoring royal tyranny. 
ENDTEXT
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
TEXT
^We have a good relationship to the Elector of Hesse-Cassel. From time to time he will offer us well trained
^mercenaries. The more you will pay, the better units you will get.
^
^The Hessian mercenaries will appear in London, so you have to embark them into the colonies. 
ENDTEXT
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
TEXT
^You can guess, there is no chance to recruit regular units in the colonies. They are only available
^in London. Like the Hessian mercenaries, you have to embark them into the colonies too.
^
^Beware of American privateers! 
ENDTEXT
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
TEXT
^And now have fun playing the scenario.
ENDTEXT
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
TEXT
^^CREDITS
^
^Many thanks goes to:
^Fairline and Curt Sibling (graphics),
^Prof. Garfield (LUA Scripting),
^Tootall_2012 for playing the scenario and giving me a detailled description of the existing bugs
^Gapetit for hex editing my save file.
^Also many thanks to the unknown designer of the map I'm using for this scenario.
ENDTEXT
@ENDIF

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;                                                      COASTAL CITIES
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

;***************************************************************************************************************************
;                                              COASTAL CITIES UNDER AMERICAN RULE
;***************************************************************************************************************************

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=0
@ENDIF

;Bangor captured (British)--------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Bangor
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=0
@ENDIF

;Bangor liberated (Americans)-----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Bangor
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=0
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                          PORTSMOUTH
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=1
@ENDIF

;Portsmouth captured (British)----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Portsmouth
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=1
@ENDIF

;Portsmouth liberated (American)--------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Portsmouth
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=1
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                          BOSTON
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=2
@ENDIF

;Boston captured (British)--------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Boston
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=2
@ENDIF

;Boston liberated (American)------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Boston
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=2
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                          PROVIDENCE
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=3
@ENDIF

;Providence captured (British)----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Providence
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=3
@ENDIF

;Providence liberated (American)--------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Providence
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=3
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                          NEW YORK
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=4
@ENDIF

;New York captured (British)------------------------------------------------------------------------------------------------
@IF
CITYTAKEN
city=New York
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=4
@ENDIF

;New York liberated (American)----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=New York
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^American troops liberates New York City from British occupation!
^
^Weeks before the American expedition the British commander Sir Guy Carleton received orders 
^from London for the evacuation of New York City. More than 29,000 Loyalist refugees and 
^also former slaves were evacuated from the city.
ENDTEXT
CREATEUNIT
owner=Americans
unit=New York Line
count=6
veteran=yes
homecity=None
locations
55,43
endlocations
CHANGEMONEY
receiver=Americans
amount=2000
Flag
Continuous
who=Americans
state=On
flag=4
@ENDIF

@IF
CITYTAKEN
city=New York
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=New York Dragoons
count=4
veteran=no
homecity=None
locations
55,43
endlocations
Flag
Continuous
who=Americans
state=On
flag=4
@ENDIF

@IF
CITYTAKEN
city=New York
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=New York Artillery
count=2
veteran=no
homecity=None
locations
55,43
endlocations
Flag
Continuous
who=Americans
state=On
flag=4
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                        PHILADELPHIA
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=5
@ENDIF

;Philadelphia captured (British)--------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Philadelphia
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^British forces marching through the streets of Philadelphia!
^
^Although the capital of the Americans is occupied, it doesn't destroy the morale of the revolutionaries.
^Despite loosing the city, the Americans have good spirits hoping to fight the British army another day.
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Irish Volunteers
count=6
veteran=yes
homecity=None
locations
52,50
endlocations
Flag
Continuous
who=Americans
state=Off
flag=5
@ENDIF

@IF
CITYTAKEN
city=Philadelphia
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Field Artillery
count=2
veteran=yes
homecity=None
locations
52,50
endlocations
Flag
Continuous
who=Americans
state=Off
flag=5
@ENDIF

@IF
CITYTAKEN
city=Philadelphia
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Charles Cornwallis
count=1
veteran=yes
homecity=None
locations
52,50
endlocations
Flag
Continuous
who=Americans
state=Off
flag=5
@ENDIF

@IF
CITYTAKEN
city=Philadelphia
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CHANGEMONEY
receiver=British Empire
amount=1500
Flag
Continuous
who=Americans
state=Off
flag=5
@ENDIF

;Philadelphia liberated (American)------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Philadelphia
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=1st Pennsylvania Regt.
count=4
veteran=yes
homecity=None
locations
52,50
endlocations
Flag
Continuous
who=Americans
state=On
flag=5
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                          BALTIMORE
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=6
@ENDIF

;Baltimore captured (British)-----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Baltimore
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=6
@ENDIF

;Baltimore liberated (American)---------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Baltimore
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=6
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                           SALISBURY
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=7
@ENDIF

;Salisbury captured (British)-----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Salisbury
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=7
@ENDIF

;Salisbury liberated (American)---------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Salisbury
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=7
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                           NORFOLK
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=8
@ENDIF

;Norfolk captured (British)-------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Norfolk
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=8
@ENDIF

;Norfolk liberated (American)-----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Norfolk
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=8
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                           NEW BERN
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=9
@ENDIF

;New Bern captured (British)------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=New Bern
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=9
@ENDIF

;New Bern liberated (American)----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=New Bern
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=9
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                         WILMINGTON
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=10
@ENDIF

;Wilmington captured (British)----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Wilmington
attacker=British Empire
defender=Americans
@THEN
Flag
Continuous
who=Americans
state=Off
flag=10
@ENDIF

;Wilmington liberated (American)--------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Wilmington
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=10
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                         CHARLES TOWN
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=11
@ENDIF

;Charles Town captured (British)--------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Charles Town
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^British troops have seized the South's biggest city and seaport, winning a great victory and leaving
^the American military structure in the South in ruins.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=1500
Flag
Continuous
who=Americans
state=Off
flag=11
@ENDIF

@IF
CITYTAKEN
city=Charles Town
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Loyalists
count=3
veteran=yes
homecity=None
locations
45,81
endlocations
Flag
Continuous
who=Americans
state=Off
flag=11
@ENDIF

;Charles Town liberated (American)------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Charles Town
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=11
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                         SAVANNAH
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=1
@THEN
Flag
continuous
who=Americans
state=on
flag=12
@ENDIF

;Savannah captured (British)------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Savannah
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^British troops marching through the streets of Savannah!
^
^Due to poor training and inexperienced with warfare, many American militias fled before the British army
^arrived.
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Loyalists
count=6
veteran=yes
homecity=None
locations
41,87
endlocations
Flag
Continuous
who=Americans
state=Off
flag=12
@ENDIF

;Savannah liberated (American)----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Savannah
attacker=Americans
defender=British Empire
@THEN
Flag
Continuous
who=Americans
state=On
flag=12
@ENDIF

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;                                                     NORTHERN THEATER
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

;***************************************************************************************************************************
;                                                    NEW YORK CAMPAIGN
;***************************************************************************************************************************

;---------------------------------------------------------------------------------------------------------------------------
;                                                      JOHANN RALL'S ARMY
;---------------------------------------------------------------------------------------------------------------------------

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Hessian Light Corps
count=2
veteran=yes
homecity=None
Randomize
locations
54,44
53,43
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Hessian Musketeers
count=2
veteran=yes
homecity=None
Randomize
locations
54,44
53,43
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Hessian Grenadiers
count=2
veteran=yes
homecity=None
Randomize
locations
54,44
53,43
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Hessian Jaeger Regt.
count=1
veteran=yes
homecity=None
Randomize
locations
54,44
53,43
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Hessian Dragoons
count=2
veteran=yes
homecity=None
Randomize
locations
54,44
53,43
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Hessian Artillery
count=1
veteran=yes
homecity=None
Randomize
locations
54,44
53,43
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=von Rall's Grenadier Regt.
count=1
veteran=yes
homecity=None
Randomize
locations
54,44
53,43
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Johann Rall
count=1
veteran=yes
homecity=None
Randomize
locations
54,44
53,43
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                    WILLIAM HOWE'S ARMY
;---------------------------------------------------------------------------------------------------------------------------

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Light Corps
count=3
veteran=yes
homecity=None
Randomize
locations
55,43
56,44
55,41
54,42
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Line Infantry
count=3
veteran=yes
homecity=None
Randomize
locations
55,43
56,44
55,41
54,42
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Line Grenadiers
count=3
veteran=yes
homecity=None
Randomize
locations
55,43
56,44
55,41
54,42
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Highlander Regt.
count=3
veteran=yes
homecity=None
Randomize
locations
55,43
56,44
55,41
54,42
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Foot Guards
count=3
veteran=no
homecity=None
Randomize
locations
55,43
56,44
55,41
54,42
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Royal Welsh Fusiliers
count=3
veteran=no
homecity=None
Randomize
locations
55,43
56,44
55,41
54,42
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Light Dragoons
count=2
veteran=yes
homecity=None
Randomize
locations
55,43
56,44
55,41
54,42
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Queen's Light Dragoons
count=2
veteran=yes
homecity=None
Randomize
locations
55,43
56,44
55,41
54,42
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Field Artillery
count=2
veteran=yes
homecity=None
Randomize
locations
55,43
56,44
55,41
54,42
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                       KING'S AMERICAN REGT.
;---------------------------------------------------------------------------------------------------------------------------

@IF
TURN
turn=6
@THEN
JUSTONCE
TEXT
^^General William Howe proclaims:
^
^Edmund Fanning, a colonist loyal to the crown, is commissioned as Colonel. He raises a regiment
^of Loyalists called the King's American Regt. on Staten Island. 
ENDTEXT
CREATEUNIT
owner=British Empire
unit=King's American Regt.
count=5
veteran=no
homecity=None
locations
55,43
endlocations
@ENDIF
;***************************************************************************************************************************
;                                                 NEW JERSEY CAMPAIGN
;***************************************************************************************************************************

;---------------------------------------------------------------------------------------------------------------------------
;                                                        TRENTON
;---------------------------------------------------------------------------------------------------------------------------

Trenton conquered (British)-------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Trenton
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
unit=New York Loyalists
owner=British Empire
Count=2
veteran=no
homecity=None
locations
52,46
endlocations
@ENDIF

Trenton liberated (American)------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Trenton
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^In a surprise attack the poorly equiped Continental Army defeated the Hessian garrison in Trenton.
^Unfortunatelly the American vitory boosts the Continental Army's flaggin morale and inspires
^re-enlistments. 
ENDTEXT
CREATEUNIT
unit=New Jersey Line
owner=Americans
Count=5
veteran=no
homecity=None
locations
52,46
endlocations
@ENDIF

@IF
CITYTAKEN
city=Trenton
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
unit=New Jersey Dragoons
owner=Americans
Count=3
veteran=no
homecity=None
locations
52,46
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                      GEORGE WASHINGTON'S ARMY
;---------------------------------------------------------------------------------------------------------------------------

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Pennsylvania Line
count=5
veteran=no
homecity=None
Randomize
locations
52,50
51,49
50,50
51,51
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Pennsylvania Dragoons
count=5
veteran=no
homecity=None
Randomize
locations
52,50
51,49
50,50
51,51
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Pennsylvania Artillery
count=3
veteran=no
homecity=None
Randomize
locations
52,50
51,49
50,50
51,51
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=New York Line
count=5
veteran=no
homecity=None
Randomize
locations
52,50
51,49
50,50
51,51
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=New York Dragoons
count=3
veteran=no
homecity=None
Randomize
locations
52,50
51,49
50,50
51,51
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Continental Light Corps
count=3
veteran=no
homecity=None
Randomize
locations
52,50
51,49
50,50
51,51
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Virginia Line
count=5
veteran=no
homecity=None
Randomize
locations
52,50
51,49
50,50
51,51
endlocations
@ENDIF

@IF
TURN
turn=4
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=George Washington
count=1
veteran=yes
homecity=None
Randomize
locations
52,50
51,49
50,50
51,51
endlocations
@ENDIF

;***************************************************************************************************************************
;                                                    SARATOGA CAMPAIGN
;***************************************************************************************************************************

;---------------------------------------------------------------------------------------------------------------------------
;                                                   JOHN BURGOYNE'S ARMY
;---------------------------------------------------------------------------------------------------------------------------

@IF
TURN
turn=12
@THEN
JUSTONCE
TEXT
^We gets support from our Canadian colonies. General John Burgoyne marching down Lake Champlain towards Saratoga. 
ENDTEXT
@THEN
CREATEUNIT
owner=British Empire
Count=5
unit=Canadian Loyalists
veteran=no
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=4
unit=Line Infantry
veteran=no
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=4
unit=Line Grenadiers
veteran=no
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=3
unit=Highlander Regt.
veteran=no
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=3
unit=Queen's Rangers
veteran=no
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=2
unit=Light Dragoons
veteran=no
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=1
unit=Field Artillery
veteran=no
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=3
unit=Tomahawk Thrower
veteran=no
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=3
unit=Warriors
veteran=no
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

@IF
TURN
turn=12
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=1
unit=John Burgoyne
veteran=yes
homecity=None
Randomize
locations
54,16
53,17
55,17
53,15
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                     GREEN MOUNTAIN BOYS
;---------------------------------------------------------------------------------------------------------------------------

@IF
TURN
turn=14
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
Count=6
unit=Green Mountain Boys
veteran=yes
homecity=None
Randomize
locations
54,26
54,28
55,25
54,24
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                        SARATOGA
;---------------------------------------------------------------------------------------------------------------------------

;Saratoga captured (British)------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^British forces conquered Saratoga. The gates towards New York are open.
^In an act of hopeless the Contintental Congress sends Horatio Gates near the battlefields to stop
^the glorious British Army.
ENDTEXT
@ENDIF

;Saratoga liberated (American)----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Saratoga
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^The Continental Army earns a major victory at Freeman's Farm near Saratoga. In two battles the British army 
^lost more then 1.000 men and where defeated. 
^
^News about the American victory reaches France. King Louis XVI decides to enter into negotiations with the
^Americans. France also sends supplies and money into the New World.
ENDTEXT
CHANGEMONEY
receiver=Americans
amount=4000
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
Count=4
unit=New York Line
veteran=no
homecity=None
locations
52,32
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
Count=2
unit=New York Dragoons
veteran=no
homecity=None
locations
52,32
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
Count=1
unit=New York Artillery
veteran=no
homecity=None
locations
52,32
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
delay
delay=1
TEXT
^^THE KING PROCLAIMS:
^
^After the surrender of the British army near Saratoga, William Howe is replaced by Henry Clinton as 
^Commander-in-Chief for the British troops in North America.
ENDTEXT
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                     HORATIO GATES ARMY
;---------------------------------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
Count=6
unit=New York Line
veteran=no
homecity=None
Randomize
locations
52,36
51,35
53,35
55,33
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
CREATEUNIT
owner=Americans
Count=4
unit=New York Dragoons
veteran=no
homecity=None
Randomize
locations
52,36
51,35
53,35
55,33
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
CREATEUNIT
owner=Americans
Count=2
unit=New York Artillery
veteran=no
homecity=None
Randomize
locations
52,36
51,35
53,35
55,33
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
CREATEUNIT
owner=Americans
Count=5
unit=Connecticut Line
veteran=no
homecity=None
Randomize
locations
52,36
51,35
53,35
55,33
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
CREATEUNIT
owner=Americans
Count=2
unit=Connecticut Artillery
veteran=no
homecity=None
Randomize
locations
52,36
51,35
53,35
55,33
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
CREATEUNIT
owner=Americans
Count=3
unit=Connecticut Dragoons
veteran=no
homecity=None
Randomize
locations
52,36
51,35
53,35
55,33
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
CREATEUNIT
owner=Americans
Count=4
unit=Rhode Island Line
veteran=no
homecity=None
Randomize
locations
52,36
51,35
53,35
55,33
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
CREATEUNIT
owner=Americans
Count=3
unit=Continental Rifles
veteran=no
homecity=None
Randomize
locations
52,36
51,35
53,35
55,33
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratoga
attacker=British Empire
defender=Americans
@THEN
CREATEUNIT
owner=Americans
Count=1
unit=Horatio Gates
veteran=yes
homecity=None
Randomize
locations
52,36
51,35
53,35
55,33
endlocations
@ENDIF

;***************************************************************************************************************************
;                                                  PHILADELPHIA CAMPAIGN
;***************************************************************************************************************************

@IF
CheckFlag
who=Americans
flag=5
state=On
@AND
Turn
turn=14
@THEN
JUSTONCE
TEXT
^General William Howe landed at the North end of the Chesapeake Bay. His troops are concentrated on 
^capturing Philadelphia, the seat of the Revolutionary government.
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Light Infantry
count=2
veteran=yes
homecity=None
randomize
locations
51,53
50,52
51,51
53,51
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=5
state=On
@AND
Turn
turn=14
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Line Infantry
count=2
veteran=yes
homecity=None
randomize
locations
51,53
50,52
51,51
53,51
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=5
state=On
@AND
Turn
turn=14
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Line Grenadiers
count=2
veteran=yes
homecity=None
randomize
locations
51,53
50,52
51,51
53,51
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=5
state=On
@AND
Turn
turn=14
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Foot Guards
count=2
veteran=yes
homecity=None
randomize
locations
51,53
50,52
51,51
53,51
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=5
state=On
@AND
Turn
turn=14
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Royal Welsh Fusiliers
count=2
veteran=yes
homecity=None
randomize
locations
51,53
50,52
51,51
53,51
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=5
state=On
@AND
Turn
turn=14
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Light Dragoons
count=2
veteran=yes
homecity=None
randomize
locations
51,53
50,52
51,51
53,51
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=5
state=On
@AND
Turn
turn=14
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Field Artillery
count=2
veteran=yes
homecity=None
randomize
locations
51,53
50,52
51,51
53,51
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=5
state=On
@AND
Turn
turn=14
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Field Howitzer
count=2
veteran=yes
homecity=None
randomize
locations
51,53
50,52
51,51
53,51
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   WILHELM VON STEUBEN
;---------------------------------------------------------------------------------------------------------------------------

@IF
Turn
turn=23
@THEN
JUSTONCE
TEXT
^^Reports from our spies:
^
^"George Washington and his army encamped at Valley Forge in Pennsylvania the last six months. During this time
^the skilled Prussian drill master, Baron Wilhelm von Steuben, tirelessly drilled and scoled the colonial farmers
^into an effective fighting force. Intensive daily training, coupled with von Steuben's forceful manner, instilled
^in the men renewed confidence in themselve and their ability to success."
ENDTEXT
CREATEUNIT
owner=Americans
unit=Pennsylvania Line
count=12
veteran=yes
homecity=None
randomize
locations
49,47
47,47
46,48
47,49
48,48
endlocations
@ENDIF

@IF
Turn
turn=23
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Pennsylvania Dragoons
count=6
veteran=yes
homecity=None
randomize
locations
49,47
47,47
46,48
47,49
48,48
endlocations
@ENDIF

@IF
Turn
turn=23
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Pennsylvania Artillery
count=4
veteran=yes
homecity=None
randomize
locations
49,47
47,47
46,48
47,49
48,48
endlocations
@ENDIF

@IF
Turn
turn=23
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Wilhelm von Steuben
count=1
veteran=yes
homecity=None
randomize
locations
49,47
47,47
46,48
47,49
48,48
endlocations
@ENDIF

;***************************************************************************************************************************
;                                                 ATTACK ON GERMAN FLATTS
;***************************************************************************************************************************

@IF
TURN
turn=27
@THEN
JUSTONCE
TEXT
^William Caldwell and Brant's Volunteers plans to attack the most westerly inhabited settlements on the Mohawk River,
^German Flatts.
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Butler's Rangers
count=6
veteran=yes
homecity=None
randomize
locations
44,38
44,40
49,37
48,32
endlocations
@ENDIF

@IF
TURN
turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Loyalists
count=4
veteran=no
homecity=None
randomize
locations
44,38
44,40
49,37
48,32
endlocations
@ENDIF

@IF
TURN
turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Tomahawk Thrower
count=4
veteran=no
homecity=None
randomize
locations
44,38
44,40
49,37
48,32
endlocations
@ENDIF

@IF
TURN
turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Horsemen
count=4
veteran=no
homecity=None
randomize
locations
44,38
44,40
49,37
48,32
endlocations
@ENDIF

@IF
TURN
turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Warriors
count=4
veteran=no
homecity=None
randomize
locations
44,38
44,40
49,37
48,32
endlocations
@ENDIF

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;                                                     SOUTHERN THEATER
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

;---------------------------------------------------------------------------------------------------------------------------
;                                                   Lord Dumore's Army
;---------------------------------------------------------------------------------------------------------------------------

@IF
TURN
turn=2
@THEN
JUSTONCE
TEXT
^Virginias former Royal Governor, Lord Dunmore, issued a proclamation offering freedom to all slaves of
^revolutionaries who were willing to join him under arms against the rebels. Over five hundred slaves 
^from Virginia promptly abandoned their Revolutionary masters and joins Dunmore's ranks.
^
^Lord Dunmore forms them into the Ethiopian Regiment.  
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Ethiopian Regt.
count=7
veteran=no
homecity=None
locations
50,60
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Lord Dunmore
count=1
veteran=yes
homecity=None
locations
50,60
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   Lee's Legion
;---------------------------------------------------------------------------------------------------------------------------

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Lee's Legion
count=7
veteran=no
homecity=None
locations
43,71
endlocations
@ENDIF

@IF
TURN
turn=2
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Lee's Legion
count=7
veteran=no
homecity=None
locations
42,76
endlocations
@ENDIF


;***************************************************************************************************************************
;                                                BATTLE AT SULLIVAN'S ISLAND
;***************************************************************************************************************************

@IF
TURN
turn=1
@THEN
JUSTONCE
TEXT
^Crucial in any operation in retaking the South will be the possession of a port to bring supplies. 
^For this end, our troops prepares an attack on Fort Sullivan at Charles Town. 
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Line Infantry
count=3
veteran=no
homecity=None
randomize
locations
46,80
44,82
45,83
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Line Grenadiers
count=3
veteran=no
homecity=None
locations
46,80
44,82
45,83
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Light Dragoons
count=3
veteran=no
homecity=None
locations
46,80
44,82
45,83
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Field Artillery
count=1
veteran=no
homecity=None
locations
46,80
44,82
45,83
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Foot Guards
count=2
veteran=no
homecity=None
locations
46,80
44,82
45,83
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Irish Regt.
count=3
veteran=no
homecity=None
locations
46,80
44,82
45,83
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Royal Marines
count=2
veteran=no
homecity=None
locations
46,80
44,82
45,83
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Henry Clinton
count=1
veteran=yes
homecity=None
locations
46,80
44,82
45,83
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Ship of the Line
count=2
veteran=yes
homecity=None
locations
47,81
47,83
49,81
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Frigate
count=2
veteran=yes
homecity=None
locations
47,81
47,83
49,81
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                     BANASTRE TARLETON
;---------------------------------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Charles Town
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^^THE COMMANDER OF THE BRITISH TROOPS PROCLAIMS:
^
^Because of the successfully siege of Charles Town, the young British Colonel Banastre Tarleton 
^is appointed to commander of the British Legion, a mixed force of Cavalry and Light Infantry, 
^also called the Tarleton's Raiders.
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Tarleton's Dragoons
count=6
veteran=no
homecity=None
randomize
locations
46,80
44,82
45,83
45,81
endlocations
@ENDIF

@IF
CITYTAKEN
city=Charles Town
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=British Legion
count=6
veteran=no
homecity=None
randomize
locations
46,80
44,82
45,83
45,81
endlocations
@ENDIF

@IF
CITYTAKEN
city=Charles Town
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Queen's Rangers
count=4
veteran=no
homecity=None
randomize
locations
46,80
44,82
45,83
45,81
endlocations
@ENDIF

@IF
CITYTAKEN
city=Charles Town
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Banastre Tarleton
count=1
veteran=yes
homecity=None
randomize
locations
46,80
44,82
45,83
45,81
endlocations
@ENDIF

;***************************************************************************************************************************
;                                                    SIEGE OF SAVANNAH
;***************************************************************************************************************************

@IF
CheckFlag
who=Americans
flag=12
state=On
@AND
Turn
turn=30
@THEN
JUSTONCE
TEXT
^Our general Archibald Campbell arrived off the coast of Savannah!
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Light Infantry
count=2
veteran=yes
homecity=None
randomize
locations
42,86
41,89
40,88
43,85
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=12
state=On
@AND
Turn
turn=30
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Line Infantry
count=2
veteran=yes
homecity=None
randomize
locations
42,86
41,89
40,88
43,85
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=12
state=On
@AND
Turn
turn=30
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Foot Guards
count=2
veteran=yes
homecity=None
randomize
locations
42,86
41,89
40,88
43,85
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=12
state=On
@AND
Turn
turn=30
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Royal Welsh Fusiliers
count=2
veteran=yes
homecity=None
randomize
locations
42,86
41,89
40,88
43,85
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=12
state=On
@AND
Turn
turn=30
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Queen's Light Dragoons
count=2
veteran=yes
homecity=None
randomize
locations
42,86
41,89
40,88
43,85
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=12
state=On
@AND
Turn
turn=30
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Field Artillery
count=1
veteran=yes
homecity=None
randomize
locations
42,86
41,89
40,88
43,85
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=12
state=On
@AND
Turn
turn=30
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Man-of-War
count=1
veteran=yes
homecity=None
randomize
locations
44,88
45,87
43,89
endlocations
@ENDIF

@IF
CheckFlag
who=Americans
flag=12
state=On
@AND
Turn
turn=30
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Frigate
count=2
veteran=yes
homecity=None
randomize
locations
44,88
45,87
43,89
endlocations
@ENDIF

;***************************************************************************************************************************
;                                                    BATTLE OF CAMDEN
;***************************************************************************************************************************

;---------------------------------------------------------------------------------------------------------------------------
;                                                       COLUMBIA
;---------------------------------------------------------------------------------------------------------------------------

;Columbia captured (British)------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Columbia
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^British troops defeated the American forces about 6 miles north of Camden. The decisive victory ensures
^the British hold on South Carolina.
^
^Again, American Generals see that it isn't easy to defeat the British Line Infantry in a set piece pitched
^battle, muzzle to muzzle.
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Loyalists
count=6
veteran=yes
homecity=None
locations
42,76
endlocations
@ENDIF

@IF
CITYTAKEN
city=Columbia
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
owner=British Empire
unit=Queen's Hussars
count=4
veteran=yes
homecity=None
locations
42,76
endlocations
@ENDIF

;***************************************************************************************************************************
;                                                    BATTLE OF COWPENS
;***************************************************************************************************************************

;---------------------------------------------------------------------------------------------------------------------------
;                                                       CHARLOTTE
;---------------------------------------------------------------------------------------------------------------------------

;Charlotte captured (British)-----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Charlotte
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^The American Brigadier General Danial Morgan defeated the British troops near Cowpens. The overhelming
^vixtory is a turning point in the reconquest of South Carolina from the British. All southern colonies
^are encouraging to fight further, while the Loyalists and British troops are demoralized.
ENDTEXT
CREATEUNIT
owner=Americans
unit=North Carolina Line
count=5
veteran=no
homecity=None
locations
43,71
endlocations
@ENDIF

@IF
CITYTAKEN
city=Charlotte
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=South Carolina Line
count=4
veteran=no
homecity=None
locations
45,75
endlocations
@ENDIF

@IF
CITYTAKEN
city=Charlotte
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=South Carolina Line
count=4
veteran=no
homecity=None
locations
42,80
endlocations
@ENDIF

@IF
CITYTAKEN
city=Charlotte
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=North Carolina Line
count=4
veteran=no
homecity=None
locations
48,66
endlocations
@ENDIF

@IF
CITYTAKEN
city=Charlotte
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=South Carolina Dragoons
count=4
veteran=no
homecity=None
locations
40,78
endlocations
@ENDIF

@IF
CITYTAKEN
city=Charlotte
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=South Carolina Dragoons
count=4
veteran=no
homecity=None
locations
47,73
endlocations
@ENDIF









































;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;                                                      FRANCE JOINS THE WAR
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@IF
Checkflag
Who=Americans
Mask=0b00000000000000000001111111111111
Threshold=2
State=On
@AND
TURN
Turn=24
@THEN
Flag
Continuous
who=British Empire
state=On
flag=0
@ENDIF

@IF
Checkflag
Who=Americans
Mask=0b00000000000000000001111111111111
Threshold=2
State=On
@AND
TURN
Turn=24
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^^France joins the war on American side!
^
^Benjamin Franklin reaches as a U.S. envoy in Paris after negotiations with the minister of foreign affairs,
^Charles Gravier of Vergennes, the conclusion of a trade and friendship treaty. France also announces support
^of the American Revolution with supplies and troops.
ENDTEXT
MAKEAGGRESSION
who=British Empire
whom=French
CHANGEMONEY
receiver=Americans
amount=3500
@ENDIF

;***************************************************************************************************************************
;                                                  FRENCH TROOPS IN NEW ENGLAND
;***************************************************************************************************************************

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
TEXT
^Our spies reports:
^
^French troops under command of the Comte de Rochambeau landed at Newport, Rhode Island, 
^to join the Continental Army.
ENDTEXT
CREATEUNIT
owner=Americans
unit=French Fusiliers
veteran=yes
count=8
homecity=none
Randomize
locations
63,37
61,37
62,36
64,36
57,39
56,40
55,41
56,44
54,44
54,46
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=French Grenadiers
veteran=yes
count=8
homecity=none
Randomize
locations
63,37
61,37
62,36
64,36
57,39
56,40
55,41
56,44
54,44
54,46
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=French Hussars
veteran=yes
count=8
homecity=none
Randomize
locations
63,37
61,37
62,36
64,36
57,39
56,40
55,41
56,44
54,44
54,46
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=French Artillery
veteran=yes
count=6
homecity=none
Randomize
locations
63,37
61,37
62,36
64,36
57,39
56,40
55,41
56,44
54,44
54,46
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Lauzan's Legion
veteran=yes
count=6
homecity=none
Randomize
locations
63,37
61,37
62,36
64,36
57,39
56,40
55,41
56,44
54,44
54,46
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Royal Deux-Ponts Regt.
veteran=yes
count=6
homecity=none
Randomize
locations
63,37
61,37
62,36
64,36
57,39
56,40
55,41
56,44
54,44
54,46
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Saintonge Regt.
veteran=yes
count=6
homecity=none
Randomize
locations
63,37
61,37
62,36
64,36
57,39
56,40
55,41
56,44
54,44
54,46
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Gatinois Regt.
veteran=yes
count=6
homecity=none
Randomize
locations
63,37
61,37
62,36
64,36
57,39
56,40
55,41
56,44
54,44
54,46
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Comte de Rochambeau
veteran=yes
homecity=none
Randomize
locations
63,37
61,37
62,36
64,36
57,39
56,40
55,41
56,44
54,44
54,46
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Ship of the Line
veteran=yes
count=6
homecity=none
Randomize
locations
61,41
64,40
66,36
65,31
62,30
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=27
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Frigate
veteran=yes
count=7
homecity=none
Randomize
locations
61,41
64,40
66,36
65,31
62,30
endlocations
@ENDIF

;***************************************************************************************************************************
;                                              FRENCH TROOPS IN THE SOUTHERN COLONIES
;***************************************************************************************************************************

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
TEXT
^Our spies reports:
^
^French troops landed near Charles Town, South Carolina, to join the Continental Army.
ENDTEXT
CREATEUNIT
owner=Americans
unit=French Fusiliers
veteran=yes
count=8
homecity=none
Randomize
locations
45,83
44,84
43,85
46,80
47,79
46,78
45,79
44,80
44,82
43,83
42,82
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=French Grenadiers
veteran=yes
count=8
homecity=none
Randomize
locations
45,83
44,84
43,85
46,80
47,79
46,78
45,79
44,80
44,82
43,83
42,82
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=French Hussars
veteran=yes
count=8
homecity=none
Randomize
locations
45,83
44,84
43,85
46,80
47,79
46,78
45,79
44,80
44,82
43,83
42,82
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=French Artillery
veteran=yes
count=6
homecity=none
Randomize
locations
45,83
44,84
43,85
46,80
47,79
46,78
45,79
44,80
44,82
43,83
42,82
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Lauzan's Legion
veteran=yes
count=6
homecity=none
Randomize
locations
45,83
44,84
43,85
46,80
47,79
46,78
45,79
44,80
44,82
43,83
42,82
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Royal Deux-Ponts Regt.
veteran=yes
count=6
homecity=none
Randomize
locations
45,83
44,84
43,85
46,80
47,79
46,78
45,79
44,80
44,82
43,83
42,82
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Saintonge Regt.
veteran=yes
count=6
homecity=none
Randomize
locations
45,83
44,84
43,85
46,80
47,79
46,78
45,79
44,80
44,82
43,83
42,82
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Gatinois Regt.
veteran=yes
count=6
homecity=none
Randomize
locations
45,83
44,84
43,85
46,80
47,79
46,78
45,79
44,80
44,82
43,83
42,82
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Ship of the Line
veteran=yes
count=6
homecity=none
Randomize
locations
47,81
46,82
46,84
47,83
48,82
48,80
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=28
@THEN
JUSTONCE
CREATEUNIT
owner=Americans
unit=Frigate
veteran=yes
count=7
homecity=none
Randomize
locations
47,81
46,82
46,84
47,83
48,82
48,80
endlocations
@ENDIF

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;                                                      SPAIN JOINS THE WAR
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=36
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^^Spanish Empire joins the war on American side!
^
^Bernado de Galvez, governor of Louisiana, started a campaign against British forces in West Florida, 
^trying to recapture the region for the Spanish crown.
ENDTEXT
MAKEAGGRESSION
who=British Empire
whom=Spanish Empire
@ENDIF

;***************************************************************************************************************************
;                                                SPANISH TROOPS IN WEST FLORIDA
;***************************************************************************************************************************

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=36
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Spanish Musketeers
veteran=yes
count=8
homecity=none
Randomize
locations
10,94
9,95
8,96
11,95
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=36
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Spanish Grenadiers
veteran=yes
count=8
homecity=none
Randomize
locations
10,94
9,95
8,96
11,95
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=36
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Spanish Dragoons
veteran=yes
count=6
homecity=none
Randomize
locations
10,94
9,95
8,96
11,95
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000001
count=1
State=On
@AND
TURN
Turn=36
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Spanish Artillery
veteran=yes
count=6
homecity=none
Randomize
locations
10,94
9,95
8,96
11,95
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                          NATCHEZ
;---------------------------------------------------------------------------------------------------------------------------

;Natchez captured (Spanish)-------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Natchez
attacker=Spanish Empire
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Florida Regt.
veteran=yes
count=6
homecity=none
locations
10,96
endlocations
Flag
Continuous
who=British Empire
state=On
flag=1
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                          MOBILE
;---------------------------------------------------------------------------------------------------------------------------

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000010
count=1
State=On
@AND
delay
delay=4
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Spanish Musketeers
veteran=yes
count=8
homecity=none
Randomize
locations
16,100
17,99
17,101
15,99
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000010
count=1
State=On
@AND
delay
delay=4
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Spanish Grenadiers
veteran=yes
count=8
homecity=none
Randomize
locations
16,100
17,99
17,101
15,99
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000010
count=1
State=On
@AND
delay
delay=4
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Spanish Artillery
veteran=yes
count=8
homecity=none
Randomize
locations
16,100
17,99
17,101
15,99
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000010
count=1
State=On
@AND
delay
delay=4
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Louisiana Regt.
veteran=yes
count=8
homecity=none
Randomize
locations
16,100
17,99
17,101
15,99
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000010
count=1
State=On
@AND
delay
delay=4
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Mississippi Regt.
veteran=yes
count=8
homecity=none
Randomize
locations
16,100
17,99
17,101
15,99
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000010
count=1
State=On
@AND
delay
delay=4
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Frigate
veteran=yes
count=6
homecity=none
Randomize
locations
19,105
21,105
22,104
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000010
count=1
State=On
@AND
delay
delay=4
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Ship of the Line
veteran=yes
count=4
homecity=none
Randomize
locations
19,105
21,105
22,104
endlocations
@ENDIF

;Mobile captured (Spanish)--------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Mobile
attacker=Spanish Empire
defender=British Empire
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Florida Regt.
veteran=yes
count=6
homecity=none
locations
20,100
endlocations
Flag
Continuous
who=British Empire
state=On
flag=2
@ENDIF

;***************************************************************************************************************************
;                                                      SIEGE OF PENSACOLA
;***************************************************************************************************************************

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000110
count=2
State=On
@AND
delay
delay=1
@THEN
JUSTONCE
TEXT
^Our spies reports:
^
^Spanish troops spotted near Pensacola.
ENDTEXT
CREATEUNIT
owner=Spanish Empire
unit=Spanish Musketeers
veteran=yes
count=8
homecity=none
Randomize
locations
23,97
23,99
25,97
24,96
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000110
count=2
State=On
@AND
delay
delay=1
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Spanish Grenadiers
veteran=yes
count=8
homecity=none
Randomize
locations
23,97
23,99
25,97
24,96
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000110
count=2
State=On
@AND
delay
delay=1
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Louisiana Regt.
veteran=yes
count=8
homecity=none
Randomize
locations
23,97
23,99
25,97
24,96
endlocations
@ENDIF

@IF
Checkflag
Who=British Empire
Mask=0b0000000000000000000000000000110
count=2
State=On
@AND
delay
delay=1
@THEN
JUSTONCE
CREATEUNIT
owner=Spanish Empire
unit=Spanish Artillery
veteran=yes
count=6
homecity=none
Randomize
locations
23,97
23,99
25,97
24,96
endlocations
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                          PENSACOLA
;---------------------------------------------------------------------------------------------------------------------------

;Pensacola captured (Spanish)-----------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Pensacola
attacker=Spanish Empire
defender=British Empire
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^^Spanish troops conquered Pensacola!
^
^After massive Spanish bombardement, General John Campbell realized, that the final line of the
^fortification at Fort George won't survive the follo´wing barrage. He and his army surrendered.
^
^The gates to West Florida are open for the Spanish army.
ENDTEXT
CREATEUNIT
owner=Spanish Empire
unit=Florida Regt.
veteran=yes
count=6
homecity=none
locations
25,99
endlocations
@ENDIF

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;                                                        ODDS AND ENDS
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

;***************************************************************************************************************************
;                                                   PIRATES OF THE CARRIBEAN
;***************************************************************************************************************************

;---------------------------------------------------------------------------------------------------------------------------
;                                                         FREEPORT
;---------------------------------------------------------------------------------------------------------------------------

;Freeport captured (British)------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Freeport
attacker=British Empire
defender=Pirates
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^^British troops liberated Freeport from Pirate occupation!
^
^Members of the Royal Marine Corps found a map in the ruins of the governor's palace, leading
^straight to Fort Nassau, Nassau.
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Royal Marines
veteran=yes
count=4
homecity=none
Randomize
locations
56,112
endlocations
@ENDIF

@IF
CITYTAKEN
city=Freetown
attacker=British Empire
defender=Pirates
@THEN
delay
delay=1
JUSTONCE
TEXT
^Our grandmaster of the prison in Freetown reports:
^
^An imprisoned member of the pirate gang told the British troops that Nassau is well fortified.
^Fort Nassau is still intact. Heavy naval ships will be necessary for attacking the last pirate 
^stronghold.
ENDTEXT
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                         NASSAU
;---------------------------------------------------------------------------------------------------------------------------

Nassau captured (British)---------------------------------------------------------------------------------------------------

@IF
CITYTAKEN
city=Nassau
attacker=British Empire
defender=Pirates
@THEN
JUSTONCE
TEXT
^^THE ROYAL MAIL
^
^^British troops liberated Nassau!
^
^Fort Nassau surrendered after hours of huge naval bombardment. Most of the Pirates in the city fled.
^The map from Freeport leds direct into Fort Nassau and reveals a huge pirate treasure.
ENDTEXT
CREATEUNIT
owner=British Empire
unit=Royal Marines
veteran=yes
count=4
homecity=none
Randomize
locations
57,119
endlocations
CHANGEMONEY
receiver=British Empire
amount=5500
@ENDIF

;***************************************************************************************************************************
;                                                     BRITISH LOYALISTS
;***************************************************************************************************************************

;State of New York under British rule (British)-----------------------------------------------------------------------------

@IF
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
owner=British Empire
unit=New York Loyalists
veteran=no
homecity=none
Randomize
locations
55,43
52,32
endlocations
@ENDIF

;State of Pennsylvania under British rule (British)-------------------------------------------------------------------------

@IF
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
owner=British Empire
unit=Pennsylvania Loyalists
veteran=no
homecity=none
Randomize
locations
49,41
45,35
40,46
52,50
endlocations
@ENDIF

;State of Virginia under British rule (British)-----------------------------------------------------------------------------

@IF
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
owner=British Empire
unit=Virginia Loyalists
veteran=no
homecity=none
Randomize
locations
47,57
48,62
52,64
44,62
35,57
39,53
29,65
22,74
15,75
endlocations
@ENDIF

;State of North Carolina under British rule (British)-----------------------------------------------------------------------

@IF
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
owner=British Empire
unit=North Carolina Loyalists
veteran=no
homecity=none
Randomize
locations
52,70
48,70
45,67
43,71
48,76
endlocations
@ENDIF

;State of Newfoundland under British rule (British)-------------------------------------------------------------------------

@IF
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
owner=British Empire
unit=Newfoundland Loyalists
veteran=no
homecity=none
Randomize
locations
68,16
76,16
endlocations
@ENDIF

;***************************************************************************************************************************
;                                                     AMERICAN MINUTEMEN
;***************************************************************************************************************************

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
owner=Americans
unit=Minutemen
veteran=no
homecity=none
Randomize
locations
41,87
35,85
33,79
39,81
45,81
42,76
48,76
43,71
48,70
52,70
45,67
44,62
48,62
52,64
47,57
52,56
48,52
52,50
52,46
55,43
49,41
55,37
59,39
60,34
52,32
56,30
60,28
63,23
endlocations
@ENDIF

;***************************************************************************************************************************
;                                                     AMERICAN PRIVATEERS
;***************************************************************************************************************************

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
owner=Americans
unit=Privateers
veteran=no
homecity=none
Randomize
locations
135,9
132,24
136,36
147,39
endlocations
@ENDIF

;***************************************************************************************************************************
;                                                     AMERICAN GENERALS
;***************************************************************************************************************************

;---------------------------------------------------------------------------------------------------------------------------
;                                                   GEORGE WASHINGTON
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=George Washington
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^We captured George Washington during battle. The Americans paid 1500 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=1500
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   HORATIO GATES
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=Horatio Gates
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^We captured Horatio Gates during battle. The Americans paid 1000 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=1000
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   MARQUIS DE LA FAYETTE
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=Marquis de La Fayette
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^We captured Marquis de La Fayette during battle. The Americans paid 1000 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=1000
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   WILHELM VON STEUBEN
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=Wilhelm von Steuben
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^We captured Wilhelm von Steuben during battle. The Americans paid 1000 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=1000
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   COMTE DE ROCHAMBEAU
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=Comte de Rochambeau
attacker=British Empire
defender=Americans
@THEN
JUSTONCE
TEXT
^We captured Comte de Rochambeau during battle. The Americans paid 1500 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=1500
@ENDIF

;***************************************************************************************************************************
;                                                     BRITISH GENERALS
;***************************************************************************************************************************

;---------------------------------------------------------------------------------------------------------------------------
;                                                   CHARLES CORNWALLIS
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=Charles Cornwallis
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^The Americans captured Charles Cornwallis during battle. We paid 1500 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=-1500
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                       WILLIAM HOWE
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=William Howe
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^The Americans captured William Howe during battle. We paid 1000 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=-1000
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   HENRY CLINTON
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=Henry Clinton
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^The Americans captured Henry Clinton during battle. We paid 1000 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=-1000
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   JOHN BURGOYNE
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=John Burgoyne
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^The Americans captured John Burgoyne during battle. We paid 1000 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=-1000
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   BANASTRE TARLETON
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=Banastre Tarleton
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^The Americans captured Banastre Tarleton during battle. We paid 500 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=-500
@ENDIF

;---------------------------------------------------------------------------------------------------------------------------
;                                                   LORD DUNMORE
;---------------------------------------------------------------------------------------------------------------------------

@IF
UNITKILLED
unit=Lord Dunmore
attacker=Americans
defender=British Empire
@THEN
JUSTONCE
TEXT
^The Americans captured Lord Dunmore during battle. We paid 50 pound ransom for him.
ENDTEXT
CHANGEMONEY
receiver=British Empire
amount=-50
@ENDIF

@ENDEVENTS